file(GLOB SOURCES *.cc)
file(GLOB HEADERS include/*.h)

add_executable(paramd
  ${SOURCES} ${HEADERS}
)

target_include_directories(paramd
  PUBLIC
    $<INSTALL_INTERFACE:include>
    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
)

target_link_libraries(paramd
  PRIVATE
    Szarp2
    server
)

install(TARGETS paramd
  RUNTIME DESTINATION "${INSTALL_BINDIR}" DESTINATION bin)

install(FILES pam/paramd DESTINATION /etc/pam.d)
